致胜优势INFO
联系我们CONTACT

公司地址:茂名市人民南路新村大院22号101

电话:13592986386

KindEditor JS 赋值您当前的位置:首页 > KindEditor JS 赋值

KindEditor JS 赋值

发布时间:2019/5/8 10:14:42

    <script>
        var editor1=null;

        KindEditor.ready(function (K) {
             editor1 = K.create('#Content_FTB', {
                cssPath: '/kindeditor/plugins/code/prettify.css',
                uploadJson: '/kindeditor/upload_json.ashx',
                fileManagerJson: '/kindeditor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=Form1]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=Form1]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });
    </script>




--第二步

 editor1.insertHtml(cComments);